<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditQualificacoesFuncionarioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditQualificacoesFuncionarioLabel_instituicao}" for="instituicao" />
                    <h:inputText id="instituicao" value="#{qualificacoesFuncionarioController.selected.instituicao}" title="#{bundle.EditQualificacoesFuncionarioTitle_instituicao}" />
                    <h:outputLabel value="#{bundle.EditQualificacoesFuncionarioLabel_detalhe}" for="detalhe" />
                    <h:inputText id="detalhe" value="#{qualificacoesFuncionarioController.selected.detalhe}" title="#{bundle.EditQualificacoesFuncionarioTitle_detalhe}" />
                    <h:outputLabel value="#{bundle.EditQualificacoesFuncionarioLabel_funcionario}" for="funcionario" />
                    <h:selectOneMenu id="funcionario" value="#{qualificacoesFuncionarioController.selected.funcionario}" title="#{bundle.EditQualificacoesFuncionarioTitle_funcionario}" required="true" requiredMessage="#{bundle.EditQualificacoesFuncionarioRequiredMessage_funcionario}">
                        <f:selectItems value="#{funcionarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditQualificacoesFuncionarioLabel_qualificacoes}" for="qualificacoes" />
                    <h:selectOneMenu id="qualificacoes" value="#{qualificacoesFuncionarioController.selected.qualificacoes}" title="#{bundle.EditQualificacoesFuncionarioTitle_qualificacoes}" required="true" requiredMessage="#{bundle.EditQualificacoesFuncionarioRequiredMessage_qualificacoes}">
                        <f:selectItems value="#{qualificacoesController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditQualificacoesFuncionarioLabel_data}" for="data" />
                    <h:inputText id="data" value="#{qualificacoesFuncionarioController.selected.data}" title="#{bundle.EditQualificacoesFuncionarioTitle_data}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <h:commandLink action="#{qualificacoesFuncionarioController.update}" value="#{bundle.EditQualificacoesFuncionarioSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditQualificacoesFuncionarioViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{qualificacoesFuncionarioController.prepareList}" value="#{bundle.EditQualificacoesFuncionarioShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditQualificacoesFuncionarioIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
